package com.tz.farmer.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CheckApply implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "检测类型")
    private String checkType;

    @ApiModelProperty(value = "检测信息")
    private String checkContent;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "图片")
    private String photo;

    @ApiModelProperty(value = "商户名")
    private String checkName;

    @ApiModelProperty(value = "产品名")
    private String goodsId;

    @ApiModelProperty(value = "中文区分 0：农  1：鱼")
    private Integer property;

    @ApiModelProperty(value = "提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8" )
    private LocalDateTime uploadTime;

    @ApiModelProperty(value = "置顶数值")
    private Integer top;

    @ApiModelProperty(value = "当前产品")
    @TableField(exist = false)
    private String product;

    @ApiModelProperty(value = "当前商家")
    @TableField(exist = false)
    private String business;
}